package domain

import (
	"gitee.com/cjsn/topsdk/util"
)

type TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest struct {
	/*
	   保单号     */
	InsuranceOrderNo *string `json:"insurance_order_no,omitempty" `

	/*
	   投保数量     */
	InsuranceCount *int64 `json:"insurance_count,omitempty" `

	/*
	   投保对应服务单     */
	InsuranceServiceOrderId *int64 `json:"insurance_service_order_id,omitempty" `

	/*
	   投保时间     */
	InsuranceStartTime *util.LocalTime `json:"insurance_start_time,omitempty" `

	/*
	   退保时间(暂定）     */
	InsuranceRefundTime *util.LocalTime `json:"insurance_refund_time,omitempty" `

	/*
	   投保类型 1：只换不修；2：碎屏；3：延长保修；4:全面保修;5:意外保；6:无忧退     */
	InsuranceType *int64 `json:"insurance_type,omitempty" `

	/*
	   保单状态 1 投保成功； 99 投保失败     */
	InsuranceOrderStatus *int64 `json:"insurance_order_status,omitempty" `
}

func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceOrderNo(v string) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceOrderNo = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceCount(v int64) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceCount = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceServiceOrderId(v int64) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceServiceOrderId = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceStartTime(v util.LocalTime) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceStartTime = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceRefundTime(v util.LocalTime) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceRefundTime = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceType(v int64) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceType = &v
	return s
}
func (s *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest) SetInsuranceOrderStatus(v int64) *TmallSerivcecenterServicerorderInsuranceCallbackServiceInsuranceCallbackRequest {
	s.InsuranceOrderStatus = &v
	return s
}
